<template>
  <n-tabs
    class="guild_tab"
    justify-content="center"
    type="line"
    :value="cfg.route.name"
    animated
  >
    <template v-for="item in cfg.lv2tab">
      <n-tab-pane :name="item.name" :tab="item.title">
        <template #tab>
          <router-link
            :to="{
              name: item.name,
            }"
          >
            <div class="_div">
              {{ item.title }}
            </div>
          </router-link></template
        >
      </n-tab-pane>
    </template>
  </n-tabs>
</template>

<script>
import { cfg } from "@/cfg/cfg.js";

export default {
  setup() {
    return { cfg };
  },
};
</script>
